package com.ideaplugin.datamanager.model.common;

import lombok.Data;

/**
 * Created on 2023/6/12.
 *
 * @author zhaojb
 */
@Data
public class DwhException extends RuntimeException {
    private String code;
    private String message;

    public DwhException(CommonResultCode commonResultCode) {
        this.code = commonResultCode.code;
        this.message = commonResultCode.message;
    }

    public DwhException(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
